<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script src="plug-in/tools/popup/userSelect.js"></script>
<script src="plug-in/tools/popup/departSelect.js"></script>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:0px;border:0px">
		<t:datagrid name="surveyList"  title="" fitColumns="false" actionUrl="surveyInfoByHighwayController.do?carList" idField="id" fit="true" autoLoadData="true" queryMode="group">
			<t:dgCol title="common.id" field="id" hidden="true"></t:dgCol>
			<t:dgCol title="案件流水号" field="reportNo" query="true" ></t:dgCol>
			<t:dgCol title="甲方车牌号" field="carsNo" query="true" ></t:dgCol>
			<t:dgCol title="甲方联系方式" field="driverPhone" query="true" ></t:dgCol>
			<t:dgCol title="甲方驾驶员" field="jiaDriName" query="true" hidden="true"></t:dgCol>
			<t:dgCol title="乙方车牌号" field="yiCarNo" query="true" ></t:dgCol>
			<t:dgCol title="乙方联系方式" field="yiPhone" query="true" ></t:dgCol>
			<t:dgCol title="乙方驾驶员" field="yiDriName" query="true"  hidden="true"></t:dgCol>
			<t:dgCol title="流入时间" field="createTm" editor="datebox" formatter="yyyy-MM-dd hh:mm:ss" query="true" queryMode="group"></t:dgCol>
			<t:dgCol title="服务人员" field="appUser.empName" query="true"></t:dgCol>
			<t:dgCol title="服务点" field="workSpace"  special="服务点" query="true" ></t:dgCol>
			<t:dgCol title="所属交警" field="trafficPolice"></t:dgCol>
			<t:dgCol title="出险地点" showLen="15" field="dangerPlace"></t:dgCol>
			<t:dgCol title="案件状态"  field="caseStatus"  replace="已提交_S,注销_C,已完成_F" style="background:#f2dede;color:#a94442;_C,background:#d9edf7;color:#31708f;_S,background:#dff0d8;color:#3c763d;_F"></t:dgCol>
			<t:dgCol title="审核状态" field="surveyExamine" query="true" replace="新案件_n,审核不通过_f,已审核_p" style="background:#f2dede;color:#a94442;_0,background:#d9edf7;color:#31708f;_1,background:#dff0d8;color:#3c763d;_2"></t:dgCol>
			
			<t:dgCol title="common.operation" field="opt"  style="width:80px"></t:dgCol>
			<t:dgFunOpt funname="checkCase(reportNo,surveyExamine)" title="审核" urlStyle="color:red" operationCode="btn_001"></t:dgFunOpt>
		</t:datagrid>
	</div>
</div>

<script type="text/javascript">
	$(document).ready(function(){
		$("input[name='createTm_begin']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
		$("input[name='createTm_end']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	});

	
	function checkCase(reportNo,surveyExamine){
		if("p" == surveyExamine){
			alert("此案件无需审核！");
			return false;
		}else{
			addOneTab('<t:mutiLang langKey="案件审核详情"/>' , "surveyInfoByHighwayController.do?carInfo&reportNo="+reportNo);
		}
		
		
	}
	

</script>
